package com.cskaoyan.catmall.dao;

import com.cskaoyan.catmall.model.bo.UserUpdateBO;
import com.cskaoyan.catmall.model.pojo.MarketUser;
import com.cskaoyan.catmall.model.pojo.MarketUserExample;
import com.cskaoyan.catmall.model.vo.UserListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketUserMapper {
    long countByExample(MarketUserExample example);

    int deleteByExample(MarketUserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketUser record);

    int insertSelective(MarketUser record);

    List<MarketUser> selectByExample(MarketUserExample example);

    MarketUser selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketUser record, @Param("example") MarketUserExample example);

    int updateByExample(@Param("record") MarketUser record, @Param("example") MarketUserExample example);

    int updateByPrimaryKeySelective(MarketUser record);

    int updateByPrimaryKey(MarketUser record);

    int selectCount();

    List<UserListVO> select(@Param("username") String username, @Param("mobile") String mobile, @Param("sort") String sort, @Param("order") String order);

    UserListVO selectById(@Param("id") Integer id);

    int update(UserUpdateBO userUpdateBO);

}